package com.cyq.day06;

import java.util.Scanner;

public class ClassWork03 {
    public static void main(String[] args) {
        //输入一个字符串，将该字符串中大小写字母互相转换
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        char[] cs = input.toCharArray();
        for (int i = 0; i < cs.length; i++) {
            if (cs[i] >= 97 && cs[i] <= 123) {
                cs[i] -= 32;
            } else if (cs[i] >= 65 && cs[i] < 97) {
                cs[i] += 32;
            }
        }
        String s = new String(cs);
        System.out.println(s);

    }
}
